﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Smartee.RichText
{
    public sealed class Cell : Body
    {
        private Row _parentRow;
        public Row ParentRow { get { return _parentRow; } }
        public bool IsMoreThanOneParagraph { get { return _containers.Count > 1; } }

        public Cell(Row parentRow)
        {
            _parentRow = parentRow;
        }

        public override void Accept(IVisitor visitor)
        {
            visitor.StartVisit(this);
            base.Accept(visitor);
            visitor.EndVisit(this);
        }
    }
}
